package day10.two03;

public class text {
    public static void main(String[] args) {
        cat cc = new cat();
        cc.setColor("白");
        cc.setNum(4);
        dog dd = new dog();
        dd.setColor("黄");
        dd.setNum(4);

        System.out.println(cc.getColor()+" "+cc.getNum());
        cc.eat();
        cc.catchMouse();
        System.out.println(dd.getColor()+" "+dd.getNum());
        dd.eat();
        dd.lookHome();
    }
}
